<template>
  <el-select
    :value="current"
    @change="(value) => $emit('change', value)"
  >
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
</template>

<script>
export default {
  model: {
    prop: 'current',
    event: 'change',
  },
  props: {
    options: Array,
    current: Number,
  },
}
</script>
